package com.zhang.bingmei_incomeexpenditure.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.bingmei_incomeexpenditure.entity.comCity.CommCity;
import com.zhang.bingmei_incomeexpenditure.entity.commom.DataScope;
import com.zhang.bingmei_incomeexpenditure.entity.user.User;

import java.util.List;

public interface CommCityService extends IService<CommCity> {
    // 继承IService，获得丰富的业务方法

    // 根据DataScope的area字段模糊查询并去重
    List<String> listByDataScopeArea(DataScope dataScope, User user);


    List<CommCity> selectList(QueryWrapper<CommCity> queryWrapper);

//    @Select("select * form comm_city")
//    List<CommCity> getAll();
}
